// 导入组件
const Layout = () => import('@/layout/index.vue')
const activityRule = () => import('@/views/activity/activityRule.vue')
const coupon = () => import('@/views/activity/coupon.vue')

// 导出该组件
export default [
  {
    path: '/activity',
    component: Layout,
    name: 'activity',
    meta: {
      title: '营销活动',
    },
    icon: 'Location',
    children: [
      {
        path: '/activityRule',
        name: 'activityRule',
        component: activityRule,
        meta: {
          title: '活动规则管理',
        },
        hidden: false,
      },
      {
        path: '/coupon',
        name: 'coupon',
        component: coupon,
        meta: {
          title: '优惠卷管理',
        },
        hidden: false,
      },
    ],
  },
]
